package com.zy.portal.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.zy.common.util.TaotaoResult;
import com.zy.portal.pojo.CartItem;

/**
 *  购物车实现
 * @author fys
 *
 */
public interface CartService {
	/**
	 * 添加到购物车
	 */
	public TaotaoResult addCartItem(long itemId, int num, HttpServletRequest request, HttpServletResponse response);
	
	/**
	 * 从Cookie中取出购物车商品列表
	 */
	public List<CartItem> getCartItemList(HttpServletRequest request, HttpServletResponse response) ;
	
	/**
	 * 删除购物车信息
	 */
	public TaotaoResult deleteCartItem(String itemId, HttpServletRequest request, HttpServletResponse response);
}
